<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-hatchetAcqMerchant-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">唯一编号：</label>
				<div class="col-sm-8">
					<input id="acqMerchantNo" name="acqMerchantNo" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">通道主键：</label>
				<div class="col-sm-8">
					<input id="acqId" name="acqId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">通道商户名称：</label>
				<div class="col-sm-8">
					<input id="acqMerchantName" name="acqMerchantName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<input id="status" name="status" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="mcc" name="mcc" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">费率：</label>
				<div class="col-sm-8">
					<input id="rate" name="rate" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">封顶金额：</label>
				<div class="col-sm-8">
					<input id="maxFee" name="maxFee" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支持的卡类型：</label>
				<div class="col-sm-8">
					<input id="authCardType" name="authCardType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">最高金额：</label>
				<div class="col-sm-8">
					<input id="toAmt" name="toAmt" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">起始金额：</label>
				<div class="col-sm-8">
					<input id="fromAmt" name="fromAmt" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">营业开始时间：</label>
				<div class="col-sm-8">
					<input id="startTime" name="startTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">营业结束时间：</label>
				<div class="col-sm-8">
					<input id="stopTime" name="stopTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">使用状态：</label>
				<div class="col-sm-8">
					<input id="employStatus" name="employStatus" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/hatchetAcqMerchant"
		$("#form-hatchetAcqMerchant-add").validate({
			rules:{
				acqMerchantNo:{
        			required:true,
                    remote: {
                        url: prefix + "/checkAcqMerchantNoUnique",
                        type: "post",
                        dataType: "json",
                        data: {
                            name: function () {
                                return $.common.trim($("#acqMerchantNo").val());
                            }
                        },
                        dataFilter: function (data, type) {
                        	return $.validate.unique(data);
                        }
                    }
        		}
			},
		 	messages: {
        		"acqMerchantNo":{
                	remote: "通道编号已存在请重新输入"
        		}
            }
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-hatchetAcqMerchant-add').serialize());
	        }
	    }
	</script>
</body>
</html>
